<template>
  <div>
    <choose-video :value.sync="current_value" :field="field" :form-datas="formDatas" />
  </div>
</template>

<script>
import ChooseVideo from '@/pages/material/choose/video.vue';

export default {
  components: {
    ChooseVideo
  },
  props: {
    value: {
      type: Number,
      default: 0
    },
    field: {
      type: String,
      required: true
    },
    formDatas: {
      type: Object,
      required: true
    }
  },
  data() {
    return {
      current_value: this.value
    };
  },
  watch: {
    current_value(value) {
      this.$emit('update:value', value);
    }
  }
};
</script>
